package org.durandj.ystream.server.ui;

import org.durandj.ystream.server.ClientManager;

/**
 * A base UI. This defines some common behaviors between UI's that could be used.
 * 
 * @author durandj
 * @version 1.0
 *
 */
public interface ServerUI
{
	/**
	 * Called when the UI needs to be cleaned up. This method should clean up any
	 * references it has and then dispose of itself.
	 */
	public void destroy();
	
	/**
	 * Sets the client manager reference that the UI uses to notify the user of a
	 * change in the number of connected clients.
	 * 
	 * @param manager - the client manager
	 */
	public void setClientManager(ClientManager manager);
}
